import { createSSRApp } from "vue";
// 导入 Pinia
import { createPinia } from 'pinia'
// Pinia 持久化插件
import { createUnistorage } from "pinia-plugin-unistorage"
import App from "./App.vue";
export function createApp() {
  const app = createSSRApp(App);
  // 创建 Pinia 实例
  const Pinia = createPinia()
  // 应用 Pinia 插件
  Pinia.use(createUnistorage())

  app.use(Pinia)
  return {
    app,
    Pinia
  };
}
